﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Abp.Auditing;
using GN.Pay.Application.GatewayApp;
using GN.Pay.Application.GatewayApp.Dto.Output;

namespace GN.Pay.GatewayWeb.Controllers.PayRoute
{
    /// <summary>
    /// 
    /// </summary>
    [PayRoute(WeiXinJsApiRoute.Channel_Id)]
    class WeiXinJsApiRoute : APayActionRoute
    {
        public const string Channel_Id = "WeiXin.JSAPI";

        public WeiXinJsApiRoute(IClientInfoProvider clientInfo, ITradeApplyAppService service) : base(clientInfo, service)
        {
        }

        public override string ChannelId
        {
            get
            {
                return Channel_Id;
            }
        }

        /// <summary>
        /// 
        /// </summary>
        public override bool IsSupportWap
        {
            get
            {
                return true;
            }
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="output"></param>
        /// <param name="viewResultFactory"></param>
        /// <returns></returns>
        protected override ActionResult ViewResult(PayChannelOutput output, Func<string, object, ActionResult> viewResultFactory)
        {
            throw new NotImplementedException();
        }
    }
}